package com.itcam.cm.product.service.impl;

import com.itcam.cm.model.entity.product.ProductSku;
import com.itcam.cm.model.entity.user.AuthContextUtil;
import com.itcam.cm.model.entity.user.UserInfo;
import com.itcam.cm.product.mapper.ProductSkuMapper;
import com.itcam.cm.product.service.ProductSkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProductSkuServiceImpl implements ProductSkuService {

    @Autowired
    private ProductSkuMapper productSkuMapper;
    @Override
    public ProductSku getSkuById(Long skuId) {
        // UserInfo user = AuthContextUtil.getUser();

        ProductSku productSku = productSkuMapper.selectById(skuId);
        return productSku;
    }
}
